package com.xyh.flowershop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xyh.flowershop.domain.Order;
import com.xyh.flowershop.vo.req.orders.OrderAddReqVo;
import com.xyh.flowershop.vo.req.orders.OrderPageReqVo;
import com.xyh.flowershop.vo.resp.order.OrderDetailRespVo;
import com.xyh.flowershop.vo.resp.order.OrderPageRespVo;

import java.util.List;


/**
 * @author 小约翰可汗
 * @className OrderService
 * @createTime 2024/5/1221:36
 */
public interface OrderService extends IService<Order> {
    Boolean addOrder(OrderAddReqVo vo);

    Boolean deleteOrders(List<String> ids);

    void cancelOrders(List<String> ids);

    IPage<OrderPageRespVo> findPageOrders(OrderPageReqVo vo);

    OrderDetailRespVo findOrderDetail(String id);

    Boolean confirmReceipt(String id);

    Boolean buyAgain(String id);
}
